//将公共css导入
@import "public.less";
html,body{
    height: 100%;
}
.icon-chenggong {
    color: #52C41A;
  }
  .icon-shibai {
    color: #E84335;
  }


.content{
    position: relative;
    width: 80%;
    height: 100%;
    margin: 0 auto;
    border: solid 1px @bc;
    text-align: center;
    color: @zt;
    >h3{
        padding: 10px 0px;
        text-align: center;
    }
    .main{
        margin-top: 10px;
        display: flex;
        .uploadPic,.uploadArtical{
            padding: 20px;
            flex: 1;
            >h4{
                text-align: left;
            }
        }
        .uploadPic{
            border-right: solid 1px @bc;
            .uploadBox{
                display: inline-block;
                border: dashed 4px @bc;
                width: 120px;
                height: 120px;
                text-align: center;
                display: flex;
                align-items: center;
                position: relative;
                font-size: 20px;
                margin: 20px 0px;
                margin-top: 10px;
                >input{
                    position: absolute;
                    display: inline-block;
                    width: 100%;
                    height: 100%;
                    cursor: pointer;
                    opacity: 0;
                }
                >i{
                    font-size: 50px;
                    font-weight: 500;
                    color: @bc;
                    position: relative;
                    left: 50%;
                    transform: translateX(-50%);
                }
            }
            .readyPic{
                >h5{
                    margin-bottom: 5px;
                }
                .imgBox{
                    margin-right: 10px;
                    margin-bottom: 10px;
                    display: inline-block;
                    overflow: hidden;
                    position: relative;
                    vertical-align: top;
                    >img{
                        width: 100px;
                    }
                    &:hover .opacity{
                        display: inline-block;
                    }
                    .opacity{
                        display: none;
                        position: absolute;
                        z-index: 1;
                        top: 0px;
                        left: 0px;
                        width: 100%;
                        height: 98%;
                        background-color: rgba(0,0,0,.4);
                        .deleteImg{
                            font-size: 22px;
                            position: relative;
                            text-align: right;
                            color: white;
                            margin-right: 10px;
                            cursor: pointer;
                        }
                    }
                }
            }
        }
        .uploadArtical{
            >textarea{
                resize: none;
                margin: 0;
                box-sizing: border-box;
                border: solid 1px #e0e0e0;
                width: 100%;
                height: 100px;
                outline: none;
                font-size: 15px;
                color: #777777;
                margin-top: 5px;
                padding: 5px;
                height: 90%;
                &::-webkit-scrollbar-thumb{//滑块
                    background-color: #ff949d;
                    border-radius: 100px;
                }
                &::-webkit-scrollbar{//滑道宽度
                    width: 3px;
                }
            }
            .fontMax{
                text-align: right;
                font-size: 13px;
                color: @z;
            }
        }
        
    }
    .addAlbum{
        padding: 20px;
        width: 100%;
        display: flex;
        margin-bottom: 10px;
        >span{
            display: inline;
        }
        .selectAdd{
            // border: solid 1px #e0e0e0;
            display: flex;
            flex: 1;
            line-height: 30px;
            cursor: pointer;
            position: relative;
            color: @zt;
            text-decoration: none;
            // &:focus .creatAkbumDiv{
            //     display: flex;
            // }
            // &:focus .selectUl{
            //     display: block;
            // }
            >.albumUl{
                flex: 1;
                line-height: 30px;
                cursor: pointer;
                color: #777777;
                list-style: none;
                text-align: left;
                font-size: 14px;
                border-bottom: solid 1px @bc;
                position: relative;
                bottom: 4px;
                .albumList{
                    margin-right: 2px;
                    line-height: 30px;
                    cursor: pointer;
                    color: #777777;
                    list-style: none;
                    font-size: 14px;
                    margin: 0;
                    box-sizing: border-box;
                    display: inline-block;
                    border-radius: 100px;
                    transition: 0.2s;
                    padding: 0px 5px;
                    margin-right: 2px;
                    margin-bottom: 5px;
                    // &:hover{
                    //     background-color: #ffa1a9;
                    //     color: white;
                    // }

                }
            }
            .creatAlbum{
                text-align: center;
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                display: inline-block;
                width: 80px;
                color: white;
                background-color: #ff949d;
                height: 27px;
                line-height: 27px;
                cursor: pointer;
                position: relative;
                bottom: 3px;
            }
            .creatInput{
                margin: 0;
                box-sizing: border-box;
                flex: 1;
                outline: none;
                border: solid 2px #ff949d;
                padding: 3px 0px;
                text-indent: 5px;
                height: 27px;
                // width: 200px;
                width: 0px;
                position: absolute;
                right: 70px;
                top: -3px;
                &:focus{
                    background-color: seashell;
                    
                }
            }
        }
    }
    .addSelect{
        padding: 20px;
        width: 100%;
        display: flex;
        margin-bottom: 10px;
        >span{
            display: inline;
        }
        .selectTip{
            // border: solid 1px #e0e0e0;
            display: flex;
            flex: 1;
            height: 33px;
            line-height: 30px;
            cursor: pointer;
            position: relative;
            color: @zt;
            text-decoration: none;
            >.tipUl{
                flex: 1;
                line-height: 30px;
                cursor: pointer;
                color: #777777;
                list-style: none;
                text-align: left;
                font-size: 14px;
                border-bottom: solid 1px @bc;
                position: relative;
                bottom: 4px;
                .tipList{
                    line-height: 30px;
                    cursor: pointer;
                    color: #777777;
                    list-style: none;
                    font-size: 14px;
                    margin: 0;
                    box-sizing: border-box;
                    display: inline-block;
                    border-radius: 100px;
                    transition: 0.2s;
                    padding: 0px 5px;
                    margin-right: 2px;
                    margin-bottom: 5px;
                    // &:hover{
                    //     background-color: #ffa1a9;
                    //     color: white;
                    // }

                }
            }
            .creatTipBtn{
                text-align: center;
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                display: inline-block;
                width: 80px;
                color: white;
                background-color: #ff949d;
                height: 27px;
                line-height: 27px;
                cursor: pointer;
                position: relative;
                bottom: 3px;
            }
            .creatTip{
                margin: 0;
                box-sizing: border-box;
                flex: 1;
                outline: none;
                border: solid 2px #ff949d;
                padding: 3px 0px;
                text-indent: 5px;
                margin-right: 10px;
                height: 27px;
                // width: 200px;
                width: 0px;
                position: absolute;
                right: 70px;
                top: -3px;
                &:focus{
                    background-color: seashell;
                    
                }
            }
        }
    }
    .pubishBtn{
        display: inline-block;
        color: white;
        background-color: #ff949d;
        width: 130px;
        height: 40px;
        line-height: 40px;
        border-radius: 20px;
        font-size: 17px;
        text-align: center;
        cursor: pointer;
        margin-top: 20px;
    }
    .draft{
        display: inline-block;
        cursor: pointer;
    }
    .empty{
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        text-align: right;
        color: red;
        font-size: 14px;
        display: none;
    }
}

.alert{
    text-decoration: none;
    margin: 0;
    box-sizing: border-box;
    background-color: white;
    border: solid 1px #52C41A;
    padding: 10px;
    position: fixed;
    top: 20%;
    left: 50%;
    width: 160px;
    height: 50px;
    transform: translate(-50%, -50%);
    line-height: 30px;
    text-align: center;
    transition: 0.4s;
    opacity: 0;
    >i{
        color: #52C41A;
        font-size: 20px;
    }
    >p{
        display: inline-block;
        line-height: 30px;
        position: relative;
        bottom: 3px;
    }
}

// .getDraftBtn,.deleteDraft{
//     width: 140px;
//     height: 30px;
//     line-height: 30px;
//     color: white;
//     background-color: #ff949d;
//     cursor: pointer;
//     position: absolute;
//     top: 0px;

// }
.deleteDraft{
    margin-left: 160px;
}
.getDraftAgain{
    background-color: rgba(0,0,0,.3);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 1;
    display: none;
    .getAgainContent{
        background-color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 490px;
        height: 120px;
        padding: 20px;
        .getAgainTop{
            text-align: center;
            color: @zt;
            font-size: 18px;
            font-weight: bolder;
        }
    }
    .getAgainBtns{
        text-align: right;
        margin-top: 20px;
        >div{
            display: inline-block;
            width: 50px;
            height: 30px;
            padding: 5px;
            line-height: 20px;
            cursor: pointer;
            text-align: center;
            font-size: 14px;
        }
        .getOk{
            color: white;
            background-color: #ff949d;
            border: @zt 1px #ff949d;
        }
        .getNo{
            margin-right: 5px;
            color: @zt;
            border: @zt 1px solid;
        }
    }
}


.box{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background-color: rgba(0,0,0,.5);
    display: none;
    .cropperContent{
        display: flex;
        flex-direction: column;
        width: 700px;
        height: 600px;
        background-color: white;
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        border-radius: 20px;
        padding: 20px;
        .cropperTop{
            display: flex;
            justify-content: space-between;
            .seleceImgBtn{
                width: 110px;
                height: 40px;
                background-color: #ff7782;
                outline-color: white;
                position: relative;
                text-align: center;
                .upInputFont{
                    text-decoration: none;
                    margin: 0;
                    padding: 0;
                    box-sizing: border-box;
                    color: white;
                    text-align: center;
                    position: relative;
                    top: 10px;

                }
                .cropperInput{
                    position: absolute;
                    top: 0px;
                    left: 0px;
                    width: 100%;
                    height: 100%;
                    cursor: pointer;
                    display: inline-block;
                    z-index: 99;
                    opacity: 0;
                }
            }
            .scloseCropper{
                font-size: 20px;
                margin-right: 10px;
                margin-bottom: 5px;
                color: @zt;
                cursor: pointer;
            }
        }
        .cropperCenter{
            flex: 1;
            display: flex;
            // border: solid 1px @bc;
            margin: 20px 0px;
            .centerLeft{
                border: solid 1px #8a8a8a;
                margin-right: 20px;
                width: 440px;
                height: 430px;
                >img{
                    width: 100%;
                }
            }
            .centerRight{
                color: @zt;
                p{
                    display: inline-block;
                }
                .small{
                    width: 200px;
                    // height: 200px;
                    overflow: hidden;
                }
            }
        }
        .cropperBottom{
            display: flex;
            justify-content: space-between;
            padding: 10px 0px;
            
        }
    }
}
.bottomBtn{
    display: inline-block;
    width: 60px;
    height: 30px;
    line-height: 30px;
    margin-right: 10px;
    text-align: center;
    background-color: #ff7782;
    cursor: pointer;
    color: white;
}

.draftName{
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: rgba(0,0,0,.2);
    width: 100%;
    display: none;
    height: 100%;
    .draftNameContent{
        align-items: flex-end;
        text-align: center;
        background-color: white;
        position: relative;
        top: 50%;
        left: 50%;
        width: 400px;
        height: 150px;
        transform: translate(-50%,-50%);
        display: flex;
        flex-direction: column;
        padding: 10px;
        .closeDraftName{
            margin-right: 0px;
            width: 30px;
            font-size: 20px;
            cursor: pointer;
            display: inline-block;
        }
        .draftNameInput{
            width: 280px;
            outline: none;
            text-indent: 5px;
            height: 40px;
            margin: 20px auto;
            margin-bottom: 5px;
            border: none;
            border-bottom: solid 1px #bdbdbd;
            &:focus{
                border-bottom-color: #ff949d;
            }
        }
        .saveDraft{
            width: 50px;
            height: 30px;
            line-height: 30px;
            background-color: white;
            outline: none;
            border: solid #bdbdbd 1px;
            cursor: pointer;
            &:hover{
                background-color: #ff949d;
                border: solid 1px #ff949d;
                color: white;
            }
        }
    }
}


.black{
    background-color: rgba(0,0,0,.3);
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    display: none;
}
.getMyDraftBtn{
    display: inline-block;
    width: 30px;
    padding: 5px;
    cursor: pointer;
    position: absolute;
    top: 0px;
    left: 100%;
    color: white;
    background-color: #ff949d;
}

.allMyDraft{
    display: none;
    position: fixed;
    background-color: rgba(0,0,0,.2);
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    .allMyDraftContent{
        background-color: white;
        width: 420px;
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        position: relative;
        .closeMyDraft{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            align-self: flex-end;
            font-size: 20px;
            display: inline-block;
            width: 30px;
            cursor: pointer;
            text-align: right;
        }
        h4{
            align-self: flex-start;
            position: absolute;
            top: 20px;
        }
        select{
            margin: 10px auto;
            width: 90%;
            height: 40px;
            line-height: 40px;
            outline: none;
            border: none;
            border-bottom: solid 1px #bdbdbd;
        }
        button{
            width: 50px;
            height: 30px;
            line-height: 30px;
            border: solid 1px #bdbdbd;
            align-self: flex-end;
            background-color: white;
            cursor: pointer;
            &:hover{
                background-color: #ff949d;
                color: white;
                border: solid #ff949d 1px;
            }
        }

    }
}